//package com.guang.train.member.controller;
//
//import com.guang.train.common.resp.CommonResp;
//import com.guang.train.member.req.MemberRegisterReq;
//import com.guang.train.member.service.MemberService;
//import jakarta.annotation.Resource;
//import jakarta.validation.Valid;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//@RestController
//public class TestController {
//    @Resource
//    private MemberService memberService;
//    @GetMapping("/hello")
//    public String hello(){
//        return "Hello World";
//    }
//    @GetMapping("/count")
//    public CommonResp<Integer> count(){
//        int count=memberService.count();
////        CommonResp<Integer> commonResp = new CommonResp<>();
////        commonResp.setContent(count);
////        return commonResp;
//        return new CommonResp<>(count);
//    }
//    @PostMapping("/register")
//    public CommonResp<Long> register(@Valid MemberRegisterReq req){
//        long register = memberService.register(req);
////        CommonResp<Long> commonResp = new CommonResp<>();
////        commonResp.setContent(register);
////        return commonResp;
//        return new CommonResp<>(register);
//    }
//}
